package com.guanzi.nio.c4;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.channels.SocketChannel;

/**
 * nio-selector 客户端
 * @author 管子
 * @date 2025/2/22 11:47
 * @description: Client 类
 */
public class Client {

    public static void main(String[] args) throws IOException {
        SocketChannel sc = SocketChannel.open();
        sc.connect(new InetSocketAddress("localhost", 8080));
        sc.configureBlocking(false);
        System.out.println("waiting...");

    }

}
